package cn.atimer.sdk.emmus;

import java.util.Date;

import cn.hutool.crypto.SecureUtil;

public class AtimerClient {

	private String ClientKey;
	
	private String Timestamp;
	
	private String Sign;
	
	private String UserCode;

	public AtimerClient(String clientKey,String userCode,String secret) {
		this.ClientKey = clientKey;
		this.Timestamp = String.valueOf(new Date().getTime()/1000);
		this.Sign = SecureUtil.md5("key="+clientKey+"&secret="+secret+"&timestamp="+Timestamp+"");
		this.UserCode = userCode;
	}

	public String getClientKey() {
		return ClientKey;
	}

	public void setClientKey(String clientKey) {
		ClientKey = clientKey;
	}

	public String getTimestamp() {
		return Timestamp;
	}

	public void setTimestamp(String timestamp) {
		Timestamp = timestamp;
	}

	public String getSign() {
		return Sign;
	}

	public void setSign(String sign) {
		Sign = sign;
	}

	public String getUserCode() {
		return UserCode;
	}

	public void setUserCode(String userCode) {
		UserCode = userCode;
	}
}
